package com.entity;

import java.io.Serializable;

/**
 * 设计服装实体类
 * Author Jay
 */
public class Stock implements Serializable {
    /**
     * 服装序号
     */
    private Integer id;
    /**
     * 服装编号
     */
    private String code;
    /**
     * 服装品类
     */
    private String type;
    /**
     * 服装样图
     */
    private String img;
    /**
     * 服装品牌
     */
    private String brand;
    /**
     * 服装介绍
     */
    private String desc;
    /**
     * X码数量
     */
    private Integer countsX;
    /**
     * M码数量
     */
    private Integer countsM;
    /**
     * L码数量
     */
    private Integer countsL;
    /**
     * 服装价格
     */
    private Double price;
    /**
     * 上下架
     */
    private Boolean inUsed;

    public Stock() {
    }

    public Stock(Integer id, String code, String type, String img, String brand, String desc, Integer countsX, Integer countsM, Integer countsL, Double price, Boolean inUsed) {
        this.id = id;
        this.code = code;
        this.type = type;
        this.img = img;
        this.brand = brand;
        this.desc = desc;
        this.countsX = countsX;
        this.countsM = countsM;
        this.countsL = countsL;
        this.price = price;
        this.inUsed = inUsed;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Integer getCountsX() {
        return countsX;
    }

    public void setCountsX(Integer countsX) {
        this.countsX = countsX;
    }

    public Integer getCountsM() {
        return countsM;
    }

    public void setCountsM(Integer countsM) {
        this.countsM = countsM;
    }

    public Integer getCountsL() {
        return countsL;
    }

    public void setCountsL(Integer countsL) {
        this.countsL = countsL;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Boolean getInUsed() {
        return inUsed;
    }

    public void setInUsed(Boolean inUsed) {
        this.inUsed = inUsed;
    }

    @Override
    public String toString() {
        return "Stock{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", type='" + type + '\'' +
                ", img='" + img + '\'' +
                ", brand='" + brand + '\'' +
                ", desc='" + desc + '\'' +
                ", countsX=" + countsX +
                ", countsM=" + countsM +
                ", countsL=" + countsL +
                ", price=" + price +
                ", inUsed=" + inUsed +
                '}';
    }
}
